﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/HRManagerUI/HrManager.Master"
    AutoEventWireup="true" CodeBehind="PublishedNotice.aspx.cs" Inherits="HRM.UI.HRManagerUI.AddNotice.PublishedNotice" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentBody" runat="server">
    <link href="../../../Styles/Notice/PublishNotice.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/htmlDatePicker.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/htmlDatePicker.js" type="text/javascript"></script>
    <table>
        <tr>
            <td colspan="2" align="center">
                <asp:Label runat="server" ID="msgLbl"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="Label">
                Date:
            </td>
            <td class="Field">
                <input type="text" runat="server" id="txtDate" class="textboxinput" readonly onclick="GetDate(this);" />
            </td>
        </tr>
        <tr>
            <td class="Label">
                Subject:
            </td>
            <td class="Field">
                <input type="text" runat="server" id="txtSubject" class="inputTextarea" />
            </td>
        </tr>
        <tr>
            <td class="Label">
                Notice Summary:
            </td>
            <td class="Field">
                <textarea cols="30" rows="3" runat="server" id="txtSummary" class="inputTextarea"></textarea>
            </td>
        </tr>
        <tr>
            <td class="Label">
                Add Notice as Image:
            </td>
            <td class="Field">
                <input type="file" runat="server" id="UploadImage" class="inputUplodbox" />
            </td>
        </tr>
        <tr>
            <td class="Label">
                Authority:
            </td>
            <td class="Field">
                <input type="text" runat="server" id="txtAuthoruty" class="textboxinput" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <input type="button" id="btnPublished" runat="server" value="Published" onserverclick="Published"
                    class="btnCss" />
            </td>
        </tr>
    </table>
    <div>
        List of Published Notices:<br />
        <asp:GridView runat="server" ID="noticesGdv" CssClass="GridviewStyle" Width="100%"
            BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" AutoGenerateColumns="False"
            OnPageIndexChanging="noticesGdv_PageIndexChanging" AllowPaging="True" 
            onrowdeleting="noticesGdv_RowDeleting">
            <Columns>
                <asp:TemplateField Visible="False">
                    <ItemTemplate>
                        <asp:Label ID="lblId" runat="server" Text='<%# Bind("Id") %>'></asp:Label>
                    </ItemTemplate>
                    
                </asp:TemplateField>
                <asp:BoundField DataField="Date" HeaderText="Published Date" />
                <asp:BoundField DataField="Subject" HeaderText="Subject" />
                <asp:BoundField DataField="Summary" HeaderText="Summary" />
                <asp:BoundField DataField="NoticeBy" HeaderText="Notice By" />
                <asp:TemplateField HeaderText="Notice Image">
                    <ItemTemplate>
                       
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("NoticeImage") %>'
                                Target="_blank" Text='Click for View'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:CommandField HeaderText="Delete Notice" ShowDeleteButton="True" />
            </Columns>
            <FooterStyle CssClass="GridViewFooterStyle" />
            <HeaderStyle CssClass="GridViewHeaderStyle" />
            <PagerStyle CssClass="GridViewFooterStyle" HorizontalAlign="Center" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
            
        </asp:GridView>
    </div>
</asp:Content>
